package com.eos.control.action.activity;
import java.util.List;

import com.eos.business.service.SysActivityBusinessService;
import com.eos.common.tool.ConstantTool;
import com.eos.control.action.base.AbstractBaseAction;
import com.eos.orm.mybatis.model.SalesModel;
import com.eos.orm.mybatis.model.SysCombo;

public class AddModelSalesAction extends AbstractBaseAction {
	private static final long serialVersionUID = 5912164515344162903L;
	private Integer activtyModelId;
	private List<SysCombo> comboList;
	private List<SalesModel> salesModelList;
	
	public Integer getActivtyModelId() {
		return activtyModelId;
	}

	public void setActivtyModelId(Integer activtyModelId) {
		this.activtyModelId = activtyModelId;
	}

	public List<SysCombo> getComboList() {
		return comboList;
	}

	public List<SalesModel> getSalesModelList() {
		return salesModelList;
	}

	@Override
	public String execute(){
		try {
			 SysActivityBusinessService sabs = new SysActivityBusinessService();
			 SalesModel saleModel = new SalesModel();
			 saleModel.setStatus(ConstantTool.STATUS_OK);
			 saleModel.setDealFlag(ConstantTool.DEAL_FALG_OK);
			 salesModelList = sabs.getAllSalesModelExample(saleModel);
			 SysCombo combo = new SysCombo();
			 combo.setStatus(ConstantTool.STATUS_OK);
			 combo.setDealFlag(ConstantTool.DEAL_FALG_OK);
			 comboList = sabs.getAllSysComboExample(combo);
			 
		} catch (Exception e) {
			e.printStackTrace();
		}
		return SUCCESS;
	}
}
